﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main_timely.aspx.cs" Inherits="WorkOrder.main_timely" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>售中及时率管理_工单管理支持系统</title>
    <link href="./css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="./css/site2.css" type="text/css" rel="STYLESHEET" />
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 0px #d4f1f9;">
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Timer1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik"
        BackgroundPosition="TopLeft">
    </telerik:RadAjaxLoadingPanel>
    <asp:Timer ID="Timer1" runat="server" Interval="900000" OnTick="Timer1_Tick">
    </asp:Timer>
    <div>
        <div style="border: solid 1px #9fd6ff; background-color: #d4f1f9; border-bottom: none;">
            <table style="width: 100%">
                <tr>
                    <td style="height: 20px;">
                        &nbsp;&nbsp;<a href="#" onclick='parent.location="workBill/timely.aspx"'><img alt="" align="absmiddle" src="./images/PieChart.png"
                            style="border: none" height="15" />&nbsp;售中环节在线超时工单</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <div id="div6" style="border: solid 1px #9fd6ff; background-color: #f0f8ff; 
            overflow: auto">
            <asp:Panel ID="Panel1" runat="server">
                <table width="100%">
                    <tr>
                       <td>
                            &nbsp;&nbsp;&nbsp;&nbsp;截止今天本月完成工单&nbsp;<strong><asp:Label ID="LabelA" runat="server"
                                Text="A" Font-Size="16px"></asp:Label></strong>&nbsp;张，其中超时&nbsp;<strong><asp:Label
                                    ID="LabelB" runat="server" Text="B" Font-Size="16px" ForeColor="Red"></asp:Label></strong>&nbsp;张，开通及时率&nbsp;<strong><asp:Label
                                        ID="lblC" runat="server" Text="C" Font-Size="16px"></asp:Label>&nbsp;%</strong>&nbsp;，在线工单&nbsp;<strong><asp:Label
                                            ID="lblD" runat="server" Text="D" Font-Size="16px"></asp:Label></strong>&nbsp;张，售中环节在线工单&nbsp;<strong><asp:Label
                                                ID="LabelE" runat="server" Text="E" Font-Size="16px"></asp:Label></strong>&nbsp;张，其中超时&nbsp;<strong><asp:Label
                                                    ID="LabelF" runat="server" Text="F" Font-Size="16px" ForeColor="Red"></asp:Label></strong>&nbsp;张，专线售中环节在线超30工作日&nbsp;<strong><asp:Label
                                                        ID="LabelG" runat="server" Text="G" Font-Size="16px"></asp:Label></strong>&nbsp;张，非专线售中环节在线超5工作日&nbsp;<strong><asp:Label
                                                            ID="LabelH" runat="server" Text="H" Font-Size="16px"></asp:Label></strong>&nbsp;张，无工程专线售中环节在线超10工作日&nbsp;<strong><asp:Label
                                                                ID="LabelI" runat="server" Text="I" Font-Size="16px"></asp:Label></strong>&nbsp;张。
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="GridView1" runat="server" Width="600px" CssClass="Table" OnRowDataBound="gvReport_RowDataBound"
                    AutoGenerateColumns="False" EnableModelValidation="True">
                    <HeaderStyle CssClass="gridtitle" />
                    <Columns>
                        <asp:TemplateField HeaderText="工单号" SortExpression="工单号">
                            <ItemStyle HorizontalAlign="Left" Width="200px" />
                            <ItemTemplate>
                                <a href="#" style="color:Red" title="点击查看工单详细信息" onclick="window.open('./workbill/showOrder.aspx?id=<%# Eval("order_id") %>','','location=no,menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,width=1050,height=600');">
                                    <%# Eval("工单号")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="工单主题" HeaderText="工单主题">
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="距离超时时间" HeaderText="距离超时时间" SortExpression="距离超时时间">
                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="工单历时" HeaderText="工单历时" SortExpression="工单历时">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="售中在线历时" HeaderText="售中在线历时" SortExpression="售中在线历时">
                            <ItemStyle HorizontalAlign="Center" Width="80px" />
                        </asp:BoundField>
                        
                    </Columns>
                </asp:GridView>
            </asp:Panel>
        </div>
    </div>
    <script type="text/javascript">
        document.getElementById("div6").style.height = document.body.clientHeight-30;
        
            </script>
    </form>
</body>
</html>
